#pragma once
#include "RCInterfaces.h"

using namespace RCDX11;
using namespace DirectX;

namespace RCDX11
{
	class RCGameComponent :  public IRCGameComponent, public IUpdateable
	{
	protected:

		IRCGame* pGame;

		bool Enabled;

	public:
		DECLDIR RCGameComponent(void);
		DECLDIR virtual ~RCGameComponent(void);

		DECLDIR virtual void Update(float time) = 0;

		DECLDIR IRCGame* getGame();
		DECLDIR void setGame(IRCGame *game);

		DECLDIR virtual void Initialize() = 0;

		DECLDIR virtual bool getEnabled();
		DECLDIR virtual void setEnabled(bool value);
	};
}